package Controllers;

import Connection.FilePhaseCreator;
import SwingComponents.CreatePhasePanel;


public class CreatePhaseController {

    private PrincipalController principalController;
    
    public CreatePhaseController(PrincipalController principalController) {
        this.principalController = principalController;
        initCreatePhasePanel();
    }

    private void initCreatePhasePanel() {
        CreatePhasePanel createPhasePanel = new CreatePhasePanel(this, new FilePhaseCreator().createPhase(0));
        createPhasePanel.setVisible(true);
        principalController.getApplication().add(createPhasePanel);
    }

}
